package cn.javabb.core.entity.blog;

import cn.javabb.core.base.BaseEntity;
import cn.javabb.core.entity.sys.UserDO;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @desc:
 * @author: javabb (javabob(a)163.com)
 * @create: 2019/12/01 15:58
 */
@Data
@Accessors(chain = true)
@Table(name="biz_blog")
public class BlogDO extends BaseEntity {
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer blogId;
    private String blogTitle;
    private Boolean blogTop;
    private Boolean blogSupport;
    private Integer typeId; // 分类ID
    private Integer contentId;
    private String coverImage;
    private Integer userId;
    private Integer clickCount;
    private String blogTags;
    private Boolean commentState;
    private String blogDesc;
    private Integer state;
    private Boolean original; //是否是原创
    @Transient
    private String content;
    @Transient
    private Integer commentCount;
    @Transient
    private String typeName;
    @Transient
    private UserDO author;
    @Transient
    private List<String> thumImages;
}
